package com.xuecheng.content;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;

@SpringBootApplication
@ComponentScan(
        basePackages =
                {
                        "com.xuecheng.content",
                        "com.xuecheng.web",
                        "com.xuecheng.mybatis"

                }
)
@MapperScan("com.xuecheng.content.mappers") //扫描指定报下的所有dao接口
@EnableFeignClients("com.xuecheng.*.api") //扫描feign接口
@EnableDiscoveryClient
@EnableAsync //开启异步处理的支持
public class ContentApplication {
    public static void main(String[] args) {
        SpringApplication.run(ContentApplication.class,args);
    }
}
